#!/usr/bin/env python3
# -*- coding:utf-8 -*-

f = open('test.log', 'w')

f.write("First line!\n")
f.write("Second line!\n")
f.write("Third line!\n")
f.write("Forth line!\n")
f.write("Fifth line!\n")

f.close()